<template>
    <el-drawer v-model="table" title="删除轮播图" direction="rtl"
    size="50%" v-on:close="Load()">
    <el-form :model="form" label-width="120px">
        <p>你确定要删除吗?</p>
        <el-button type="danger" @click="Delete()">删除</el-button>
        </el-form>
    
    </el-drawer>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { Load } from '/src/style.js'
import {DeleteBanner} from '/src/service/Banner.js'
const props = defineProps({
    data: Object,
  })
const form = ref()
const table = props
const Delete = () =>{
    const data = {Id:props.data.banner_id}
    DeleteBanner(data).then((res)=>{

    })
}
</script>
<style></style>